<?php  
define('APPTYPEID', 0);  
define('CURSCRIPT', 'test');  
  
require './source/class/class_core.php';  
$discuz = C::app();  

$modarray = array('hotspot');  
  
if(!!isset($_GET['mod']) && !in_array($_GET['mod'], $modarray)){  
    echo('抱歉，请求出错。');  
}  
  
$mod = isset($_GET['mod']) ? $_GET['mod']:'hotspot';//有个方法判断当前的model  
define('CURMODULE', $mod);
$discuz->init();
  
require libfile('function/hotspot');
require libfile('class/hotspot');
runhooks();
require DISCUZ_ROOT.'./source/module/hotspot/hotspot_'.$mod.'.php';  
?>

